package com.haidung.photojourney.events;

public class SimpleEvent implements Event {

    private String type;
    private Object value;

    @Override
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    protected Object source;

    @Override
    public Object getSource() {
        return source;
    }

    @Override
    public void setSource(Object source) {
        this.source = source;
    }

    public SimpleEvent(String type) {
        this.type = type;
    }

    public SimpleEvent(String type, Object value) {
        this.type = type;
        this.value = value;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

}
